import request from '@/utils/request'

// 获取所有面试安排（分页）
export function getScheduleList(params) {
  return request({
    url: '/interview-schedule/getAllSchedules',
    method: 'get',
    params
  })
}

// 新增面试安排
export function addSchedule(data) {
  return request({
    url: '/interview-schedule/add',
    method: 'post',
    data
  })
}

// 根据id查询面试安排
export function getScheduleById(id) {
  return request({
    url: `/interview-schedule/getScheduleById/${id}`,
    method: 'get'
  })
}

// 删除面试安排
export function deleteSchedule(id) {
  return request({
    url: `/interview-schedule/delete/${id}`,
    method: 'delete'
  })
}

// 更新面试安排
export function updateSchedule(data) {
  return request({
    url: '/interview-schedule/update',
    method: 'post',
    data
  })
} 